using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class webadmin_pages_MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (base.Session["UserID"] == null)
        {
            base.Session.RemoveAll();
            base.Session.Add("url", base.Request.RawUrl.ToString());
            base.Response.Redirect("cp_login.aspx");
        }
        try
        {
            this.ContentPlaceHolder_Menu.Controls.Add(new UserControl().LoadControl("~/webadmin/controls/admin_left_menu.ascx"));
            this.ContentPlaceHolder_Footer.Controls.Add(new UserControl().LoadControl("~/webadmin/controls/admin_footer.ascx"));
            this.ContentPlaceHolder_Banner.Controls.Add(new UserControl().LoadControl("~/webadmin/controls/admin_banner.ascx"));
        }
        catch (Exception)
        {
        }
    }
}
